Automattic\Jetpack\Protect\REST_Controller S

Total Complexity 33
Dependencies 13
Dependents 1
Total lines 450
Lines of code 294
Logical lines of code 105
Comment lines 98
Methods 17
Properties 0

Methods 17

Method Rating Maintainability Complexity Lines of code
register_rest_endpoints()
A
33 1 168
api_toggle_waf()
S
55 4 22
api_complete_onboarding_steps()
S
63 4 10
api_ignore_threat()
S
63 3 10
api_unignore_threat()
S
63 3 10
api_fix_threats()
S
63 3 10
api_fix_threats_status()
S
63 3 10
api_get_waf()
S
58 1 16
api_check_credentials()
S
68 2 7
api_scan()
S
68 2 7
api_set_waf_upgrade_seen_status()
S
80 1 3
api_get_onboarding_progress()
S
75 1 4
init()
S
75 1 4
api_get_waf_upgrade_seen_status()
S
80 1 3
api_set_waf_seen_status()
S
80 1 3
api_get_waf_seen_status()
S
80 1 3
api_get_scan_history()
S
75 1 4